<!-- Begin reports/reports/issues.tpl -->

{opentable}
{titlebar colspan=2 title=$lg->issues}


{foreach from=$issues item=issue}
<tr>
<td class="sectiontableheader" width="10%">{$issue.issueid}</td>
<td class="sectiontableheader" width="10%">{status id=$issue.status}</td>
<td class="{sevrow sev=$issue.severity}"><a href="?module=issues&action=view&issueid={$issue.issueid}">{$issue.summary|stripslashes}</a></td>
</tr>
{if is_array($smarty.post.fields)}
{if in_array("gid",$smarty.post.fields)}
<tr>
<td class="smalltableentry2" width="20%" align="right" valign="center" colspan="2">{$lg->group}</td>
<td class="smalltableentry1" width="80%">{groupname id=$issue.gid}</td>
</tr>
{/if}
{if in_array("opened",$smarty.post.fields)}
<tr>
<td class="smalltableentry2" width="20%" align="right" valign="center" colspan="2">{$lg->created_on}</td>
<td class="smalltableentry1" width="80%">{$issue.opened|userdtime}</td>
</tr>
{/if}
{if in_array("modified",$smarty.post.fields)}
<tr>
<td class="smalltableentry2" width="20%" align="right" valign="center" colspan="2">{$lg->last_modified}</td>
<td class="smalltableentry1" width="80%">{$issue.modified|userdtime}</td>
</tr>
{/if}
{if in_array("closed",$smarty.post.fields) and !empty($issue.closed)}
<tr>
<td class="smalltableentry2" width="20%" align="right" valign="center" colspan="2">{$lg->closed}</td>
<td class="smalltableentry1" width="80%">{$issue.closed|userdtime}</td>
</tr>
{/if}
{if in_array("opened_by",$smarty.post.fields)}
<tr>
<td class="smalltableentry2" width="20%" align="right" valign="center" colspan="2">{$lg->opened_by}</td>
<td class="smalltableentry1" width="80%">{username id=$issue.opened_by}</td>
</tr>
{/if}
{if in_array("assigned_to",$smarty.post.fields)}
<tr>
<td class="smalltableentry2" width="20%" align="right" valign="center" colspan="2">{$lg->assigned_to}</td>
<td class="smalltableentry1" width="80%">
{foreach from=$issue.assigned key=group item=user}
{groupname id=$group}: {username id=$user}<br />
{/foreach}
</td>
</tr>
{/if}

{if in_array("product",$smarty.post.fields)}
<tr>
<td class="smalltableentry2" width="20%" align="right" valign="center" colspan="2">{$lg->product}</td>
<td class="smalltableentry1" width="80%">{product id=$issue.product}</td>
</tr>
{/if}
{if in_array("category",$smarty.post.fields)}
<tr>
<td class="smalltableentry2" width="20%" align="right" valign="center" colspan="2">{$lg->type}</td>
<td class="smalltableentry1" width="80%">{category id=$issue.category}</td>
</tr>
{/if}
{if in_array("problem",$smarty.post.fields)}
<tr>
<td class="smalltableentry2" width="20%" align="right" valign="center" colspan="2">{$lg->long_description}</td>
<td class="smalltableentry1" width="80%">{$issue.problem|format}</td>
</tr>
{/if}
{/if}
{if $smarty.post.show_events eq "on" and is_array($issue.events)}
{foreach from=$issue.events item=event}
<tr>
<td class="datasmall" colspan="3">
{$event.action|format}
</td>
<tr><td class="smalltableentry1" colspan="3">{$lg->posted_by} {username id=$event.userid} {$lg->on} {$event.performed_on|userdtime}</td></tr>
</tr>
{/foreach}
<tr><td>&nbsp;</td></tr>
{/if}
{/foreach}
</table>
</table>

<!-- End reports/reports/issues.tpl -->

